Repository navigation
fix(digest): treat graded assignments as submitted - #2
Merged
nowherewashere merged 2 commits intoSep 20, 2026
Merged
Conversation
nowherewashere
added a commit
that referenced
this pull request
Sep 20, 2026
…антикой Moodle moodle.submission_state(assign, status, now): статус с учётом группового ответа (teamsubmission), оценки без файла (#2), очного задания без плагинов ответа (offline), индивидуального продления (extensionduedate заменяет срок и поднимает cutoff), «приём ещё не открыт» (allowsubmissionsfromdate) и «приём закрыт» — по lastattempt.canedit (серверный submissions_open: cutoff, продление, locked, запись), а не по cutoffdate; cansubmit — кнопка, не признак. Ею пользуются и сводка, и study task (раньше карточка не знала про #2). Сводка: «приём закрыт» / «заблокировано» / «откроется DD.MM» в «Состоянии»; закрытое и очное — не в «Горит» (у РУДН cutoff = срок у 42 из 43 заданий: после срока сдаётся только «Пересдача», и она в «Горит» остаётся); продление переносит работу из просроченного в сроки, снимок хранит исходный срок, чтобы не было «срок сдвинут» каждый день; пересдача нужна и при закрытом оригинале.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что изменено
newПочему
Moodle может поставить оценку за очную защиту, не создавая submission. Из-за этого работа с
gradeиstatus="new"ошибочно попадала в просроченные и в раздел «Горит».Проверка
python -m unittest discover -s tests -t .— 146 тестов успешно, 1 пропущенstudy state --no-save